<?php
include_once("../../config.php");
?>
<?php include "../../coresection/connection.php";?>
<?php include "../../coresection/checkSession.php";?>
<?php include "../../coresection/admin-product.php";?>
<?php include "../../coresection/order-list.php";?>

<?
$plate=select_one_line_all_items($table_Prefix."plate","mid = 'location'");
?>

<?
//用来判断当前系统属于什么板块
$system_part = $plate['mid'];
include_once("detail-function.php");
?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <?php include '../../modules/head.php'; ?>
</head>

<body>

<?php include '../../modules/topbar.php'; ?>


<div class="setup_area">


    <?php include '../../modules/sidebar-admin.php'; ?>

    <div class="header">
        <h1>办公室管理</h1>

        <?php include '../../modules/header.php'; ?>

    </div>




    <div class="content_area dishes_box">



            <div class="box department-add-box layui-form">

       <form id="edit-department-form" method="post" action="detail-edit-function.php?nav-itemed=department" enctype="multipart/form-data" >



                        <div class="layui-form-item">
                            <label class="layui-form-label">部门名称</label>
                            <div class="layui-input-block">
                                <input type="text" name="name" required  lay-verify="required" placeholder="请输入部门名称" value="<?echo $detail['name']?>" autocomplete="off" class="layui-input">
                            </div>
                        </div>


                        <div class="layui-form-item">
                            <label class="layui-form-label">位置</label>
                            <div class="layui-input-block">
                                <input type="text" name="location" placeholder="请输入部门位置"  value="<?echo $detail['location']?>" autocomplete="off" class="layui-input">
                            </div>
                        </div>

                        <div class="layui-form-item">
                            <label class="layui-form-label">电话</label>
                            <div class="layui-input-block">
                                <input type="text" name="phone" placeholder="请输入部门电话" value="<?echo $detail['phone']?>" autocomplete="off" class="layui-input">
                            </div>
                        </div>



                        <div class="layui-form-item">
                            <label class="layui-form-label">建立日期</label>
                            <div class="layui-input-block">

                                <input type="text" name="builddate" id="date" autocomplete="off"  placeholder="请输入建立日期" class="layui-input"  value="<? echo $detail['builddate']?>" onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})" class="laydate-icon">
                            </div>
                        </div>









                        <div class="layui-form-item">
                            <label class="layui-form-label">当前状态</label>
                            <div class="layui-input-block">
                                <input type="radio" name="status" value="启用" title="启用" <? if($detail['status']=="启用"){echo "checked";} ?>>
                                <input type="radio" name="status" value="关闭" title="关闭" <? if($detail['status']=="关闭"){echo "checked";} ?>>
                        </div>





                            <input type="hidden" name="nid" value="<?echo $detail['nid']?>"  >






                        <div class="layui-form-item">
                            <div class="layui-input-block">
                                <button class="layui-btn" lay-submit lay-filter="formMemberAdd" type="submit">立即提交</button>
                                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                            </div>
                        </div>
                    </form>




            </div>



            <!--content端點01-->
        </div>
        <!--maincontent端點01-->
        <br class="clearfloat"/>
    </div>
    <!--container端點01-->
</div>







<?php include '../../modules/footer.php'; ?>
</body>
</html>
